#ifndef __BSP_CW2015_H__
#define __BSP_CW2015_H__

#include "csp_iic1.h"



#define BSP_CW2015_ADDR_7BIT			0x62
#define BSP_CW2015_ADDR_8BIT			(BSP_CW2015_ADDR_7BIT<<1)

#define BSP_CW2015_REG_VERSION				0x00
#define BSP_CW2015_REG_VCELL1					0x02
#define BSP_CW2015_REG_VCELL2					0x03
#define BSP_CW2015_REG_SOC1						0x04
#define BSP_CW2015_REG_SOC2						0x05
#define BSP_CW2015_REG_RRT_ALRT1			0x06
#define BSP_CW2015_REG_RRT_ALRT2			0x07
#define BSP_CW2015_REG_CONFIG					0x08
#define BSP_CW2015_REG_MODE						0x0A


uint8_t BSP_CW2015_Init(void);
uint8_t BSP_CW2015_Default(void);

float BSP_CW2015_GetVSell(void);
float BSP_CW2015_GetSoc(void);


#endif
